﻿using UnityEngine;

public class SingleBase<T> : MonoBehaviour where T : new()
{
    private static T d_Instance;
    public static T Instance
    {
        get
        {
            if (d_Instance == null)
                d_Instance = new T();
            return d_Instance;
        }
    }
}
